home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / vsrc.tar / voyager7_src / memory.h < prev    next >
C/C++ Source or Header  |  1991-02-27  |  1KB  |  58 lines

  1. #if !defined(memory_included)
  2. #define memory_included
  3. /*
  4. // Abstract:
  5. //    MEMORY.H---Memory Operations
  6. //
  7. //    The Memory Operations C include file defines the interface to
  8. /    Memory Operaetions routines.
  9. //
  10. // Author:
  11. //    Derek S. Nickel
  12. //
  13. // Creation date:
  14. //    28 October 1990
  15. //
  16. // History:
  17. // V01-001    Derek S. Nickel        28-OCT-1990
  18. //    Original.
  19. //
  20. */
  21.  
  22. #include <stdlib.h>
  23.  
  24. #include "voyager.h"
  25. #include "index.h"
  26.  
  27. typedef signed long bin5_t;
  28.  
  29. typedef struct _port_info_t port_info_t;
  30.  
  31. struct _port_info_t {
  32.     int loaded;
  33.     bin5_t mem_ptr;
  34.     bin5_t min_adr;
  35.     bin5_t max_adr;
  36.     char *module;
  37.     FILE *mem_file;
  38.     text_file_t *ca_file;
  39.     text_file_t *cc_file;
  40. };
  41.  
  42. extern port_info_t ports[3];
  43. extern bin5_t WorkPtr;
  44.  
  45. extern char GetNibble(void);
  46. extern void GetNNibbles(char *ans, int n);
  47. extern void SetWorkPtr(bin5_t adr);
  48. extern bin5_t str2adr(char *s, char **wp);
  49.  
  50. extern char *get_address_comment(bin5_t adr);
  51. extern bin5_t get_bin5(void);
  52. extern char *get_code_comment(bin5_t adr);
  53. extern int xlate_adr(bin5_t adr, int *port_no, bin5_t *port_adr);
  54.  
  55. #define hexval(ch) ((isdigit(ch)) ? ch-'0' : ch-'A'+10)
  56.  
  57. #endif
  58.